Optimal. Leaf size=151 \[ -\frac {2 (-1)^{3/4} a^{3/2} \tanh ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d} \sqrt {a+i a \tan (e+f x)}}{\sqrt {a} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {d} f}-\frac {2 i \sqrt {2} a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{\sqrt {c-i d} f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.28, antiderivative size = 151, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.219, Rules used = {3636, 3625,
214, 3680, 65, 223, 212} \begin {gather*} -\frac {2 (-1)^{3/4} a^{3/2} \tanh ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d} \sqrt {a+i a \tan (e+f x)}}{\sqrt {a} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {d} f}-\frac {2 i \sqrt {2} a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{f \sqrt {c-i d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 212
Rule 214
Rule 223
Rule 3625
Rule 3636
Rule 3680
Rubi steps
\begin {align*} \int \frac {(a+i a \tan (e+f x))^{3/2}}{\sqrt {c+d \tan (e+f x)}} \, dx &=i \int \frac {\sqrt {a+i a \tan (e+f x)} (i a+a \tan (e+f x))}{\sqrt {c+d \tan (e+f x)}} \, dx+(2 a) \int \frac {\sqrt {a+i a \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}} \, dx\\ &=-\frac {a^2 \text {Subst}\left (\int \frac {1}{\sqrt {a+i a x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{f}-\frac {\left (4 i a^3\right ) \text {Subst}\left (\int \frac {1}{a c-i a d-2 a^2 x^2} \, dx,x,\frac {\sqrt {c+d \tan (e+f x)}}{\sqrt {a+i a \tan (e+f x)}}\right )}{f}\\ &=-\frac {2 i \sqrt {2} a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{\sqrt {c-i d} f}+\frac {(2 i a) \text {Subst}\left (\int \frac {1}{\sqrt {c+i d-\frac {i d x^2}{a}}} \, dx,x,\sqrt {a+i a \tan (e+f x)}\right )}{f}\\ &=-\frac {2 i \sqrt {2} a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{\sqrt {c-i d} f}+\frac {(2 i a) \text {Subst}\left (\int \frac {1}{1+\frac {i d x^2}{a}} \, dx,x,\frac {\sqrt {a+i a \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{f}\\ &=-\frac {2 (-1)^{3/4} a^{3/2} \tanh ^{-1}\left (\frac {(-1)^{3/4} \sqrt {d} \sqrt {a+i a \tan (e+f x)}}{\sqrt {a} \sqrt {c+d \tan (e+f x)}}\right )}{\sqrt {d} f}-\frac {2 i \sqrt {2} a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {a} \sqrt {c+d \tan (e+f x)}}{\sqrt {c-i d} \sqrt {a+i a \tan (e+f x)}}\right )}{\sqrt {c-i d} f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(505\) vs. \(2(151)=302\).
time = 5.73, size = 505, normalized size = 3.34 \begin {gather*} \frac {\left (\frac {1}{2}-\frac {i}{2}\right ) \cos (e+f x) \left (\sqrt {c-i d} \log \left (\frac {(2-2 i) e^{\frac {3 i e}{2}} \left (-i d+d e^{i (e+f x)}+i c \left (i+e^{i (e+f x)}\right )-(1+i) \sqrt {d} \sqrt {1+e^{2 i (e+f x)}} \sqrt {c-\frac {i d \left (-1+e^{2 i (e+f x)}\right )}{1+e^{2 i (e+f x)}}}\right )}{\sqrt {d} \left (i+e^{i (e+f x)}\right )}\right )-\sqrt {c-i d} \log \left (\frac {(2+2 i) e^{\frac {3 i e}{2}} \left (d-i d e^{i (e+f x)}+c \left (-i+e^{i (e+f x)}\right )+(1-i) \sqrt {d} \sqrt {1+e^{2 i (e+f x)}} \sqrt {c-\frac {i d \left (-1+e^{2 i (e+f x)}\right )}{1+e^{2 i (e+f x)}}}\right )}{\sqrt {d} \left (-i+e^{i (e+f x)}\right )}\right )+(2-2 i) \sqrt {d} \log \left (2 \left (\sqrt {c-i d} \cos (e+f x)+i \sqrt {c-i d} \sin (e+f x)+\sqrt {1+\cos (2 (e+f x))+i \sin (2 (e+f x))} \sqrt {c+d \tan (e+f x)}\right )\right )\right ) (\cos (f x)-i \sin (f x)) \sqrt {1+\cos (2 (e+f x))+i \sin (2 (e+f x))} (\cos (2 e+f x)-i \sin (2 e+f x)) (a+i a \tan (e+f x))^{3/2}}{\sqrt {c-i d} \sqrt {d} f} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 982 vs. \(2 (114 ) = 228\).
time = 0.65, size = 983, normalized size = 6.51 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 557 vs. \(2 (113) = 226\).
time = 1.04, size = 557, normalized size = 3.69 \begin {gather*} \frac {1}{2} \, \sqrt {-\frac {8 i \, a^{3}}{{\left (i \, c + d\right )} f^{2}}} \log \left (\frac {{\left ({\left (i \, c + d\right )} f \sqrt {-\frac {8 i \, a^{3}}{{\left (i \, c + d\right )} f^{2}}} e^{\left (i \, f x + i \, e\right )} + 2 \, \sqrt {2} {\left (a e^{\left (2 i \, f x + 2 i \, e\right )} + a\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-i \, f x - i \, e\right )}}{2 \, a}\right ) - \frac {1}{2} \, \sqrt {-\frac {8 i \, a^{3}}{{\left (i \, c + d\right )} f^{2}}} \log \left (\frac {{\left ({\left (-i \, c - d\right )} f \sqrt {-\frac {8 i \, a^{3}}{{\left (i \, c + d\right )} f^{2}}} e^{\left (i \, f x + i \, e\right )} + 2 \, \sqrt {2} {\left (a e^{\left (2 i \, f x + 2 i \, e\right )} + a\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-i \, f x - i \, e\right )}}{2 \, a}\right ) - \frac {1}{2} \, \sqrt {-\frac {4 i \, a^{3}}{d f^{2}}} \log \left (\frac {{\left (d f \sqrt {-\frac {4 i \, a^{3}}{d f^{2}}} e^{\left (i \, f x + i \, e\right )} + \sqrt {2} {\left (a e^{\left (2 i \, f x + 2 i \, e\right )} + a\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-i \, f x - i \, e\right )}}{a}\right ) + \frac {1}{2} \, \sqrt {-\frac {4 i \, a^{3}}{d f^{2}}} \log \left (-\frac {{\left (d f \sqrt {-\frac {4 i \, a^{3}}{d f^{2}}} e^{\left (i \, f x + i \, e\right )} - \sqrt {2} {\left (a e^{\left (2 i \, f x + 2 i \, e\right )} + a\right )} \sqrt {\frac {{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}\right )} e^{\left (-i \, f x - i \, e\right )}}{a}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (i a \left (\tan {\left (e + f x \right )} - i\right )\right )^{\frac {3}{2}}}{\sqrt {c + d \tan {\left (e + f x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}{\sqrt {c+d\,\mathrm {tan}\left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________